Bummer. Unfortunately, you're not alone. A search on 'error 5' says we've talked about it a lot, hundreds of times? Sadly the only fix I recall is a trip to the shop. It's not covered under the 'life time heater warranty' as I recall, but 'new' units have been quickly replaced.
Good luck.
OF