Increase Swap File for raspberry pi 4 with 1gb RAM

See if this helps: