Portenta turns off, won't upload

Trying to upload a signal scanner sketch to either core ends in nothing being uploaded and the portenta shuts itself down and needs to be unplugged and replugged in. The output is:

Sketch uses 110224 bytes (10%) of program storage space. Maximum is 1048576 bytes.
Global variables use 58720 bytes (19%) of dynamic memory, leaving 235528 bytes for local variables. Maximum is 294248 bytes.

--------------------------
Compilation complete.
Skipping 1200-bps touch reset: no serial port selected!
dfu-util 0.10-dev

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
Device ID 2341:035b
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash   "
Downloading element to address = 0x08100000, size = 117732

Erase   	[                         ]   0%            0 bytes
Erase   	[                         ]   0%            0 bytes
Erase   	[=                        ]   6%         8192 bytes
Erase   	[==                       ]  10%        12288 bytes
Erase   	[===                      ]  13%        16384 bytes
Erase   	[====                     ]  17%        20480 bytes
Erase   	[=====                    ]  20%        24576 bytes
Erase   	[======                   ]  24%        28672 bytes
Erase   	[=======                  ]  31%        36864 bytes
Erase   	[========                 ]  34%        40960 bytes
Erase   	[=========                ]  38%        45056 bytes
Erase   	[==========               ]  41%        49152 bytes
Erase   	[===========              ]  45%        53248 bytes
Erase   	[============             ]  48%        57344 bytes
Erase   	[=============            ]  52%        61440 bytes
Erase   	[==============           ]  59%        69632 bytes
Erase   	[===============          ]  62%        73728 bytes
Erase   	[================         ]  66%        77824 bytes
Erase   	[=================        ]  69%        81920 bytes
Erase   	[==================       ]  73%        86016 bytes
Erase   	[===================      ]  76%        90112 bytes
Erase   	[====================     ]  80%        94208 bytes
Erase   	[=====================    ]  86%       102400 bytes
Erase   	[======================   ]  90%       106496 bytes
Erase   	[=======================  ]  93%       110592 bytes
Erase   	[======================== ]  97%       114688 bytes
Erase   	[=========================] 100%       117732 bytes
Erase    done.

Download	[                         ]   0%            0 bytes
Download	[=                        ]   6%         8192 bytes
Download	[==                       ]  10%        12288 bytes
Download	[===                      ]  13%        16384 bytes
Download	[====                     ]  17%        20480 bytes
Download	[=====                    ]  20%        24576 bytes
Download	[======                   ]  24%        28672 bytes
Download	[=======                  ]  31%        36864 bytes
Download	[========                 ]  34%        40960 bytes
Download	[=========                ]  38%        45056 bytes
Download	[==========               ]  41%        49152 bytes
Download	[===========              ]  45%        53248 bytes
Download	[============             ]  48%        57344 bytes
Download	[=============            ]  52%        61440 bytes
Download	[==============           ]  59%        69632 bytes
Download	[===============          ]  62%        73728 bytes
Download	[================         ]  66%        77824 bytes
Download	[=================        ]  69%        81920 bytes
Download	[==================       ]  73%        86016 bytes
Download	[===================      ]  76%        90112 bytes
Download	[====================     ]  80%        94208 bytes
Download	[=====================    ]  86%       102400 bytes
Download	[======================   ]  90%       106496 bytes
Download	[=======================  ]  93%       110592 bytes
Download	[======================== ]  97%       114688 bytes
Download	[=========================] 100%       117732 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
Warning: Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release

--------------------------
upload complete.

While it says the upload it complete nothing works.

I'll make other threads if need be but another issue is if there's anything plugged into an i2c port the battery charging light will stay on and wont turn off.