I have been trying to solve this for awhile to no avail. Simply put, my laptop cannot connect to the internet while running intensive programs, and is charging. Namely: Photoshop, Blender, and Halo Infinite. My biggest problems come from Halo, because I can’t connect to the servers while charging. When I disconnect the charger, I can connect to servers immediately. Once I plug back in, immediate disconnect. This goes for the other software too, but usually I can make do without internet while using them. Any recommendations are welcome. I use a ASUS - Zenbook Flip 15.6" 4K, model Q547F.
Either warranty repair or use some USB WiFi stick.