A. To avoid accidental swipes, take your time when swiping through profiles. If you accidentally swipe left on someone you wanted to connect with, consider using your super likes on them if you have any left, as this can help you stand out to that user.
B. If you find yourself frequently wanting to undo swipes, consider using the app more mindfully, perhaps by setting aside specific times to swipe rather than doing it casually throughout the day.