Hi I have a ryzen 5 5600g with rx 580 on a a 520m a pro and my apu is using 4go of ram for nothing so i want to give these 4 go back to my system.
You can't remove all the vRAM from your APU integrated Graphics.
Go into BIOS and see if there is a setting for increasing or decreasing your IGPU VRAM amount. Generally the minimal amount is 512MB that can be assigned from System Memory.