Chosen Solution

So i currently use a ASUS TUF GAMING A15, and I’ve had it for 4-5 months by now. And just recently, everytime i charge my laptop it randomly loses wifi connection and when i try reconnect to any wifi network im able to it blocks me from it saying “Unable to connect to this network”. Sometimes its also without charging. I would appreciate every help i could get. Its usually when the laptop gets hot and begins to make noise.

this happen on just home wifi or everywhere? The antenna cable may have gotten loose and needs to be reseated. is it happen to both 2.4ghz and 5ghz bands?