Help with the CD/DVD reader

This problem started just a couple of weeks ago. The CD/DVD reader’s tray does not stay inside. It keeps poping out. I press the button to close it, it slides back into the drive but a few seconds later comes out again.

It happens mostly when it is empty, but it has also happened with a DVD in it.

My computer is only a few months old. It’s a Dell, desktop, XPS series.

The reader is NEC DVD±RW ND-3530A 16X (104C).

Probably a driver/software will test the media/content and unload the tray afterwards…

What software is running?