Thats probably your biggest problem right there, Especially if this is a smaller tank....
Popeye alone is mostly caused by dirty water, Given clean water at pretty much all times and it will usually clear itself in a few days.....
What I read outta all this is most likely due to simple lack of proper water maintenance..... Now you suffer the consequences,,,,,
Bloat, Stop feeding for a few days then feed peas, Too much wrong food can cause bloat,,, My betta's bloat when I give to much flaked or dried foods......... I feed mostly frozen brine shrimp, Frozen Bloodworms, Peas with some flaked foods, and the occasional treat of dried foods such as bloodworms... Some people prefer pellets over flaked but I find my betta's won't eat pellets, But its sure better then flaked or freeze dried