Hi, I am not sure what the lumps are it is possible they could be tumours which you cant do a awful lot for, he does seem to have a little infection going on, on his body. You maybe able to cure that with turning the temp up a bit, and just keeping his water really clean. I would recommend that your maintenance needs to be upped you have 2 fish in a 5 gallon tank. so I would recommend two weekly water changes of 50% and once a month do a 80, 90% one, keep those nitrates down and water quality up. I actually do a 50% one once a week and 80% once a month I have one betta in about six gallons.
Hopefully someone else might be able to help with the lumps a bit more.
Hopefully someone else might be able to help with the lumps a bit more.