This is why I tend to lean more towards puzzles that test how prepared characters are and how well they know what their characters can do. And even then I usually have a longer/more difficult way around the puzzle just in case they can’t solve it. Like for example I have a magically locked door that they can try to get open but it would be difficult unless they have a spell or maybe getting lucky trying to lockpick it. However there is also a small cramped tunnel they can go down instead that will also get them past the door but will have some challenges along the way.
This is why I tend to lean more towards puzzles that test how prepared characters are and how well they know what their characters can do. And even then I usually have a longer/more difficult way around the puzzle just in case they can’t solve it. Like for example I have a magically locked door that they can try to get open but it would be difficult unless they have a spell or maybe getting lucky trying to lockpick it. However there is also a small cramped tunnel they can go down instead that will also get them past the door but will have some challenges along the way.