Hi, i don't think you should be taking any further medications , especially amytryptiline, without a proper diagnosis. That would require a consultation and examination by a trained neurosurgeon or neurologist. Depending on the findings, certain radiological tests may be required to rule out any neural compression at the Cranio-vertebral Junction (Part of the spine that meets the base of the skull) or upper cervical spine.
Next Steps
Consult with a Neurosurgeon/ Neurologist and get appropriate MRI done for proper diagnosis.
Health Tips
Since you are a software engineer, limit screen time as much as possible and wear a soft cervical collar till the time you get professional help