1hz frequency difference when generator running

Hi there! Im struggling with my system

I have a victron quattro 48v 10000va, a solar charger and 4 leoch batteries 20kw total storage

This issue I’m having is when the backup generator is running and I’m actively drawing load there is a frequency difference from 49.5hz-50.5hz every second. Causing the generator to have a slow whine to it and our led lights flicker ever so slightly.

However if i stop all outgoing current and just allow the generator to charge the battery it sits perfectly at 50h

Our local dealer said its the lights or our pirs but if i trip all the lights it still has the frequency issue