According to AMD Download page the latest 5700G AMD Driver isn't version 24.8.1 but version 24.3.1: https://www.amd.com/en/support/downloads/drivers.html/processors/ryzen/ryzen-5000-series/amd-ryzen-7...
Most likely version 24.8.1 is not compatible with your 5700G Integrated Graphics thus the error in installing that driver on your PC.