Maybe a USB mode switch like we use for host mode, normally USB compatible but you can switch it to tolerant of un-shorted power supply, perhaps even set the amp draw