Blender stops responding when calculating a larger number of nodes by Eevee and LookDev view

Hi. I attach an example file, that contains groups of nodes I am currently working on. This is only a part of whole system, which will be more extensive.
Problem I have encountered is that when I add further groups of nodes to the tree, blender stops responding for a few seconds (freeze) and more and more lags appear during the calculation of node tree.
This is the case with Eevee and LookDev view, Cycles does not have any problems with it.
Below is also a short film.
To test this, please unmute further groups of nodes, you will notice that the blender will respond more slowly until it finally freezes.
Maybe there is a chance for optimisation in this area?

File download: