Could it be you are using motionjoy? It is known to be somewhat unstable with PSO, especially when a disconnection occurs.
There is a better drive to use (or at least for PS3 Controllers, not sure about PS4 ) http://playstation-controller-driver-for-64bit-windows.en.lo4d.com/