Nano 33 Iot problems - I can upload just fine, but program does not run

I have a few Nano 33 Iot's that I'm using to send sensor data to a main mysql db. I had a program running on an arduino just fine. After a few hours of operation, it stopped responding. I am able to double click the reset button and I can see it start flashing. I can then connect to the arduino on port 6.

When I try to upload to the arduino on port 6, it will do the upload, but the arduino will switch over to port 7 halfway during the upload. The ide will say the upload has been completed, but the arduino doesn't do anything. When I try uploading using port 7, it seems to upload just fine, but again will not do anything.

When it switches over to port 7, it also stops flashing.

I have absolutely no idea what is going on

Try double clicking the reset button to get the board into bootloader mode. The LED will be pulsing. Select the COM port and try an upload

I am able to double click the reset button and I can see it start flashing.

Litterally in the first paragraph