MacBookPro USB port flickers frequently after connecting iPhone via cable, but it’s actually due to computer voltage.
Open Terminal and type
sudo killall -STOP -c usbd
to shut down the process.
Plug in your iPhone and connect it normally, the problem is solved.
If it doesn’t work, change the cable.