1. Stay on the retry screen
  2. Minimise your screen by pressing the PS4 button
  3. Go to Settings then Network and then Test Connection
  4. Wait for the PlayStation Netowrk Sign-In check to complete
  5. Then go back to the game and press X to retry again.

This should hopefully fix your issue!