I face similar issue like Python Selenium Chrome/FireFox: Out Of Memory and after going through Chrome out of memory in selenium - no error thrown [duplicate] and other thread pointed to as where the question has been answered, I understood the issue occur as a result of when the Heap Memory which stores object has been used up and cannot store anymore object. I understand why it happening but I seem not to be able to fix it following @undetected selenium listed solution here or be able to set OOM on windows to test if it works or any other way.
Please how can this issue be address in respect to python?