I’m fond of the saying “once you understand people’s incentives, you understand everything” as it applies to contracting.
I will add, however, that fixed price contracts have their own problems as it relates to cutting corners. E.g., it can put downward pressure on retaining talent and performing best practices because it incentivizes under-bidding and then cutting corners to make a profit. E.g., “you cobbled together some VBA in a spreadsheet once 20 years ago and will work for pennies? Congratulations, you’re our new head of software development!”
A lot of the problems can be attributed to poor contract/spec management and poor oversight. Part of the key is having good requirements and also the contractual teeth/intestinal fortitude to hold contractors feet to the fire