The water content in spinach is the culprit. Use cheesecloth or fine sieve or a layered paper towel to squeeze out the water well. If there is water left in the spinach it will turn runny. The sauce will split too. It’s crucial to squeeze out all the water from spinach.