I had good luck getting and active USB 3 cable and enabling charging on my motherboard USB 3 ports. Before that it was really unstable.
I got https://www.amazon.com/dp/B08RYPDC9S though it looks like it's out of stock now.
That and a 10ft HDMI cable and it's working great with the short cable.