Yes, you can leave pin 21 unconnected. You should be able to reproduce the problem with the code in msg #6. The issue might happen either after some minutes, an hour or even several hours. It is not consistent, but it will happen with GD32E230F8 bootloader chip, and never happen with MKL02Z32VFG4.