Medications such as gabapentin (Gralise, Neurontin, Horizant) and pregabalin (Lyrica), developed to treat epilepsy, may relieve nerve pain. Side effects can include drowsiness and dizziness. Topical treatments.