What is an equivalent Portuguese expression for "to bite off more than one can chew," that is, to take on a task that is too complex, costly, or lengthy to be completed? (reference)
Example: He bit off more than he could chew when he bought that 1880s-era house.
Is there a similar expression in Portuguese?