My suggestion is to get a per hour freelance job and only take on 20 hrs per week. I found such work on odesk.com though its a crap shoot as you're having to justify value vs $2 an hour foreign workers. Still, the point stands: freelance for fewer hours per week, giving you flexibility during episodes and more personal time to work against your symptoms.
Also, exercise and cold showers can help alleviate your symptoms: