The Ryzen 5 5600G is compatible with the A320M-S2H V2 motherboard, but you will need to update the BIOS to version F60 or later to support this processor.
To update the BIOS, you need to download the latest BIOS version for your motherboard from the manufacturer's website and follow the instructions provided in the manual or on the website. Make sure to follow the instructions carefully to avoid any damage to your hardware.
Once the BIOS has been updated, you should be able to use the Ryzen 5 5600G on your A320M-S2H V2 motherboard without any issues.