Roasting the squash as opposed to cooking it in an instant pot or even in a microwave helps prevent it from getting soggy and watery. Additionally, sprinkling the squash with salt before roasting will allow the salt to absorb any additional water that may be released while roasting.