Microcontroller getting damaged when connecting to a VCU
I am using STM32G0c8t6 microcontroller to make a BLDC motor controller. I am connecting the Rx and Tx of UART to a VCU and they are sharing the same battery. Apart from these, there is no other connection between them. And sometimes, for some unknown reason the microcontroller is getting shorted when UART is connected. It is not happening every time, so I am unable to monitor the voltages, etc at the exact moment. On one of the damaged microcontroller, the Tx pin of microcontroller was shorted to ground and Vcc. Rx pin as intact. What could be the potential causes or how can I identify the root cause? how can I protect microcontroller in this case?
This is how they are connected.

