Chrysler/Dodge/RAM has this same problem with a rearview camera.
Had intermittent rear view camera issues on my ‘16 ram.
The problem is that the connection to the camera becomes lose after multiple tailgate opening/closing cycles.
Solution is lower the tailgate
Remove the panel inside the gate (about ten torx screws)
Remove connection to the camera
Add a small amount of dielectric grease to the connector
Reattach connection
Zip tie the connectors to the inner supports so it no longer flops around
Replace the panel
Close the tailgate
Fixed
No problems since.
Probably the same issue on cars.
Now getting the “driver door ajar” problem fixed on the ford SUV...THAT is a challenge!