Increasing the swap file size really solves the «proc_open(): fork failed - Cannot allocate memory» failure Composer issue

It is not a quality solution.
The quality solution is to follow the official Composer recommendation.