@astuyve I got caught by this upgrading a Lambda function to nodejs20.
Function apparently times out, but the logs show almost no time passing at all.
Made worse because it's Lambda@Edge. Can't increase the execution timeout beyond 10 sec and memory (so CPU) fixed at 128MB.