If your PS4 randomly ejects discs, try these troubleshooting steps.
To check the system software, go to Settings > System Software Update.
A loose manual eject screw could be causing the issue. Visit the guide below to find the location of your PS4 console's manual eject screw.
If you are still having issues, please visit the PlayStation Repairs diagnostic tool to check if your hardware is eligible for an under-warranty repair.
Contact our support specialists