FWIW, POSIX does not require ulimit to interpret -m https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ulimit.html My advice is to locally comment it out and see if that's the only problem.
Attachment:
signature.asc
Description: PGP signature