Packet losses when phone screen is off

My Samsung Galaxy A15 is connected to my Windows 10 computer often, and a problem i have noticed and it’s quite bothersome is that, when my phone is on and in AudioRelay, it works fine, almost no latency spikes and packet losses. But when turn the screen off to save my own phone’s battery, it starts to have these constant high latency spikes, 200 to 300ms each, they’re all perfectly aligned with each other


why does this happen and are there any, if any, options i can choose so this stops happening? i need to keep my phone connected to a charger every time i want to use my computer.

Smartphone Samsung Galaxy A15 5G
AudioRelay Version: 0.26.1

Windows 10 Computer
AudioRelay Version: 0.27.5