Ctrl+H (replace all) in script editor crashes studio

It seems to happen at random, because I can do hundreds of replacements, then replace 2 things with it and it crashes. Without warning, it just gives everyone’s worst fear “We’re sorry, Roblox has encountered an error and needs to quit.”