This will depend on the cause of the drive’s issue. Sometimes CDs or DVDs may have gotten damaged by being scratched or smudged, so try wiping it with a soft cloth to see if this fixes the issue. If this is not the problem, then you may need to replace your CD driver either with one that works with your OS version or an external CD/DVD drive that connects through USB ports
Consider downloading a different CD drive from the internet.
Considering resources, cd drives are relatively cheap and it’s possible to buy one on Amazon for less than 10 dollars. You may also want to check the device manager to see if there is a problem with your computers, such as an updated driver or corrupted driver.
Next time you have trouble with your cd drive these tips will come in handy!