Hi,
Can we see a screenshot of lighttpd memory usage in (to confirm its the culprit and not a combination of other programs):
htop
And what is the size of swapfile on system, also, have you tried increasing it?
dietpi-config > advanced options > swapfile