For mashing, sweet potatoes need to be very tender, so you may want to set the time toward the longer end of the cooking range, depending on the size of your potatoes. Always choose potatoes that are the same size for even cooking.
From Time Inc's "Instant Pot All-Time Best Recipes"