Lyrica is in the class of drugs known as anti-convulsants because it’s believed to block abnormal electrical activity that causes seizures. An older drug that’s available in generic form but said to be more sedating is gabapentin.
These should be drugs the doctor who’s treating you for your nerve pain would be familiar with; even a PCP can prescribe them. They’re pretty commonly prescribed for nerve pain or other chronic pain.
They’ve also been found to be useful for nerve pain and fibromyalgia or other chronic pain, because they’re thought to prevent the release of certain chemicals in the brain and nervous system that contribute to pain signaling. Basically these are all a way to attempt to turn down the volume of the pain signaling in your central nervous system. There are non-medicinal ways to achieve the same goal, but not as simple as popping a pill, and sometimes not as effective or as quick.
But as @ripley pointed out, they also need to be tapered slowly if you try to get off of them. Honestly, any pain medication you look at for chronic pain other than some anti-inflammatories will have similar side effects because they work by altering the chemistry in your brain and nervous system. Some people find them to be very effective, but if you’re looking to avoid the risks, the only other way is to exhaust every other intervention first.
Thank you for all of this. The more information I have the better!