macos disable power cpu throttling
It makes sense that the machine will throttle if the battery is dead, because the charger is not capable of delivering on-demand high power throughput - that's the battery's job.
The fix is… a new battery.
I don't know whether this is technically bypassable, but if you do, then whenever high power is required, the mac will just hard-crash.