OOM killer is overly aggressive (Endless OS 5.1.2 - Kernel 6.5)

Thanks for this report. We are investigating something similar in 6.0.0 on this thread:

Can you disable your script, reproduce the problem, create a diagnostic file by running eos-diagnostics then attach it here? Thanks!