@Linkat,
I'd buy another brand or shop at another store, if it were me.
I can think of a remote possibility...and believe me, it's a crapshoot. This grocery gets some sort of a deal on dented cans.
The other more obvious possibility (if it's one particular brand), that mfr is using very thin-walled or somehow inferior cans that dent easily and had a bad warehouse storage or distribution system. Nothing about refried beans of themselves is part of this problem.
Logically, I'll assume you're not talking about swollen cans..due to botulism.