Kodi LAG almost freeze with cloudshell

I have had an annoying issue with Kodi where it will hang for a good 20 seconds and then run slow when its been running for awhile. I disconnected the GPIO and USB3 link to the PCB today and noticed the lag has dropped considerably to the point its a few seconds now. What could be causing this lag? I see nothing in the logs to say its waiting or hanging on anything.

XU4 with 16GB eMMC


same issue as here?