HP provides a straightforward method to reset the BIOS password on many of its models, including the EliteBook series.
Online "password generators" typically only work for much older HP models (pre-2015) and do not support the encryption used in the 840 G7. HP Support Community hp elitebook 840 g7 bios password reset