Fluid simulation restarts randomly
I see from your file that you are not using the cache. Switch to modular type (under DOMAIN > physics properties > cache) and every time you change something, clear the cache and recalculate it (using the CACHE button under domain > settings).

try this and share your feedback