Don’t set $31 to 900. Set $31 to 0, $30 to 1000, and $32 to 1.
Then, don’t try to make the laser go faster than the firmware limits allow. That’s why you’re losing power. Read here: Configuring a 3018 CNC (or other CNC-based laser) for use with LightBurn