Modeling mechanical relaxation in incommensurate trilayer van der Waals heterostructures