I have encountered the same error of the child process dying after its "top" memory usage reaches ~4GB during the upgrade of fastapi from 0.69.0 to 0.115.7. Thus, my temporary solution is to use 0.69.0. However, I am following this post for the true resolution to the question asked.