You can't use the BIOS for the H310M PRO-M2 directly, because you have a pre-built MSI system. You have to use the update for the system, not for the retail board.
Your BIOS updates are here:
https://www.msi.com/Desktop/Codex-3-8th/support
Try running the .exe file from a USB stick, that should update the BIOS.
As you can see, there is only a single update from 2018. This is one of the problems with the pre-built systems that use a custom BIOS: Hardly any updates.
There is a possibility to force-flash the original H310M PRO-M2 BIOS with a special tool, and while there are no guarantees that it will work smoothly, we've had some positive feedback about it.
But you can first try this "official" update for your pre-built system to see if it does what you want.