Check the driver support page:
https://www.amd.com/en/support/apu/amd-ryzen-processors/amd-ryzen-3-mobile-processors-radeon-graphics/amd-ryzen-3-5300u
If you are using the build from 8/31/2023, try the prevoius one:
https://www.amd.com/en/support/previous-drivers/apu/amd-ryzen-processors/amd-ryzen-3-mobile-processors-radeon-graphics/amd-ryzen-3-5300u