Would you see the same problem with memory if you instead used:
from stpyvista.trame_backend import stpyvista
after upgrading to version 0.1.0
pip install --upgrade stpyvista[trame]
If the goal is just to display STL files, how about not using pyvista at all and use this other component instead: