Hi GioTr,
It might well depend on your APU, but if you already have the passthrough functioning correctly, then this page should help with the AMD reset bug:
https://github.com/isc30/ryzen-gpu-passthrough-proxmox/issues/131#issue-3266798285
Note: As stated previously, a Proxmox hook-script...