I have the same Arduino IDE 1.8x on 3 computers, 2 HP laptops (1 brand new with Win 11) and an old HP desktop (Win 10). I have other sketches that do not require significant serial print, available, and parseInt commands which seem to work with the Uno and Nano Every, but not with the older Nano. All 3 Arduinos require different USB cables, but the same cable is used between the computers. I'm pretty sure it's not a cable problem, or cable insertion problem.