CORTEX_M4_0: Error connecting to the target: Frequency is out of range
What should I do?


it happens to a lot of those luminary / ti chips. The well known work-around, before they lock up, is to write a large delay at the very beginning of the project. The other alternative that Luminary advocated requires a dedicated pin.

Anyway, there are ways out of this: providing an outside clock signal. depending on the ill, you can pick the outside signal to suite your situation.

An example of that can be seen here: https://dannyelectronics.wordpress.com/2017/06/17/unbrick-my-part-lm3s-jtag-lock-out/

I recovered a LM3S811 whose JTAG pins are accidentally locked out. The problem was solved by providing a low frequency clock to the target so my JTAG probe can have enough time to take control of the chip before its JTAG pins are locked out.

Your problem may or may not be the same but the same concept applies. 

Best of luck. Next time, always program a big delay upfront. Something seasoned Luminary programmers all know, too well unfortunately.