I think your problem is that you've vastly underestimated the character wealth for a 5th level character. The table in the Epic Level Handbook gives 13,600,000 GP as the standard wealth for a 40th level character, which is more then you've alloted for a character 10 levels above that. I've used...