My laptop shows me that my USB connection is not getting enough power and now my mouse is not working
If you want to get a useful answer, you have to put a little more effort into asking the question!
The computer does not have a "mouse connection" (unless the computer is from 2005 and the mouse connection is pink!) But generally a USB. This does not get any electricity but supplies it. So if you have a performance problem there, you should also write the message that you get from the computer more or less as it is… Otherwise it won't work!
There are several possibilities that could come into question here: It could be the USB connection itself, which is defective… Would be bad with a laptop or would you have to work with a phantom power supply. The mouse or the cable can also have a problem, which is why the mouse draws too much current through a cross-circuit!
To get certainty about these two points, you should test the mouse in question on a different USB port or on another computer: If it works properly there, it is due to the USB port of your laptop… For example. But if the error moves with the mouse, this part is defective. Furthermore, the question would be whether the USB connection, if you take it, for example, to charge a battery, also switches to current limitation… Etc!