Arduino keeps crashing during serial print

The delays are concerning.

Have you used a MQTT viewer to see how the topic is behaving?