If the sweet potatoes cook for the whole 35 minutes in the instant pot, they will end up very mushy, almost dissolved. If you want the potatoes to be firm and whole, I recommend stopping cooking at the 25-minute mark, adding the potatoes and then go back to cooking for an additional 5 or 10 minutes.