Updating the bios will always reset to defaults, you can save your old profiles before on usb if supported, but I would not suggest this as not all settings are always the same, and often new options or restored settings may also appear. There is also the possibility that old profiles may cause problems or work incorrectly. Best to redo them manually and be sure to use a bios that supports the CPU you upgrade to.
Ryzen 5900X PBO/OC, Gigabyte x570 Aorus Elite F37 bios, Arctic Freezer II 420 AIO, Fans: 3x140mm 2x120mm, 24 GB G.Skill DDR4-3600 18-20-20-40 1T, CM MWE V2 1050w, Gigabyte G32QC A 1440p, PowerColor RedDevil RX 6950XT OC.