How to reconnect my PS4 controller mid flight

Hi everyone
I have recently started playing with a controller but on any flight longer than 1.5 hours it automatically disconnects
I can’t use the controller as it doesn’t work and I can tilt as IF still thinks the controller is connected
Can anyone help?

Hi, did you try repeating the pairing procedure?

Also, if you would want to disconnect it in case nothing works out, try going into Settings -> Controls and resetting the axes there.

Yes I went to settings and it connected, the buttons were working, I could take I screenshot, but they wouldn’t connect to IF, the second I landed on APPR, I went to settings and without doing anything, it worked. Again