Android Auto disconnects are usually solvable once you isolate wired vs wireless. Start with cable/port checks for wired issues, rebuild pairing for wireless issues, and ensure battery optimization ...
If only one USB device is not working, try plugging in another USB device to see if it is recognized. If other devices work, the issue may be with the original USB device rather than the port itself.