Disc drive keeps ejecting disc's, when there is no disc the disc drive beeps every few mins

My disc drive will read the disc for a few minutes then eject it by it self. I try to put disc in and it keeps ejecting them but when there is no disc the disc drive beeps like it trying to eject a disc even though there is no disc in the drive

I’ve seen a case was the eject button failed causing the issue. You will hear the “Ding” sound by button pressed(by itself in this case). Ask any local repair tech replacing the button only if so