In this case, hitting the Lambda size limit would have been the first red flag that triggered a re-evaluation of the whole approach.
Understanding the limits of the stack (Prisma + PlanetScale) would have been obvious from a few simple toy examples.
Seems like this team dove headfirst without even building a simple toy to determine if the choice was actually viable.