I would say it's not the software, I can't imagine software doing that.
I would of referred the customer directly to Apple in this case, expanding batteries are normally covered under warranty by Apple, even after 12 months.
I would advise the customer to ring Apple Care and explain the battery has expanded (and of course not saying anything about the repair). It definitely sounds like a faulty iPhone.