Yes, can reproduce your issue on LabVIEW 2024Q1.
Seems to be kind of internal race condition on deallocation.
Quick and dirty — one second delay can eliminate this (at decrease probability of failure occurrence), may be together with VISA Close.
With VISA and serial in the past I've got two "similar" mysterious troubles — one was using VISA functions inside of Timed Loop, and another one — weird race condition between VISA and Network Stream, lead to crash in LabVIEW Runtime (was hard to found, because occurred sporadically). There is no recipe to fix, just workaround (in my particular cases removed Timed Loop and added Semaphore) and report to NI with hope that this gets fixed in next release.