There is a saying in medicine, > When you hear hoofbeats, think "horses" not "Zebras" <
if an optical drive won't read a disc your knee jerk reaction should never be to solve a problem with a complicated fix, "registry edit" fit the very definition of "complicated", but to think of a simple way to fix the problem....
What you did, another optical drive.
When I have a problem I generally want to "fix" it more than I want to understand it, but that doesn't mean I don't want to understand the problem as well...
to that end when an optical drive won't work my first solution if another IDENTICAL optical drive, if that works the first optical drive goes directly into the recycyling bin with "NFG" written on it with a read grease pencil
If another identical drive doesn't work then a dis-similar drive is used
and if that one after loading drivers and the necissary reboot works, I take another tactic from my personal playbook of "How to outsmart a computer"...
I finish the intended task with the dis-similar drive run Ccleaner, do a disc cleanup with windows, then reinstal the original "suspected" drive and try to make the computer boot from a bootable Disc if it works I just presume the original driver became corrupted and leave it as-is.
Generally speaking if switching back to the original drive triggers
"Found new hardware" the drive will probably work.
But also if a driver for a CD drive or other hardware becomes corrupted in a system that's otherwise been stable for years that starts my antennae twitching And I start digging through my collection of spare hard drives for one with no "SMART" errors and my most recent Clonezilla disc.