To prevent the milk from curdling in this scalloped potatoes Instant Pot recipes, make the sauce before cooking the potatoes. This will prevent the milk from curdling.