Please mention the nerve issue which u r mentioning here clearly, so that the problem could be understood clearly.
Kindly consult some physiotherapist who can guide you with proper exercises which you can do. Dont do any exercises of your own as you had issues before.
Next Steps
Visit Physiotherapist and learn proper exercises with them and kindly explain the previous problem so that i can easily guide you through proper channel.