Been having 3-week long heavy period for 3 months now. I am experiencing back aches and fever during this cycle. And my stomach is bloating. Why?

Need exam. This is very abnormal and clearly needs to be worked up. You may be suffering from endometriosis, pid (a chronic severe infection), etc. You really need to see a gyn at this point.