Can I solve a puzzle I originally failed if there is a monster in the same room?
Yes, she does not have to attack the monster and can solve the puzzle.

Combat occurs in two ways:


If the character spends an action to attack the monster
During the monster attack phase of the Keeper's turn the Keeper has the option of attacking with any monster in the same room as an investigator. (And usually will!).