Battery operated tools

The Milwaukee weed eater I bought uses their M18 batteries.
For light duty stuff, it works fine. When I have been more aggressive, it conks out from overheating. The drive motor can't handle constant work like a gas/oil 2 stroke can. Changing batteries does not make a difference, the damn thing just shuts off and won't start working until it cools off.
Yeah....and the dipshits at the Capital made THIS CRAP the default since by the end of 2023, you can't buy any gas powered tools in this state!
They've not outlawed air power yet.