... I believe Scotty died two or three times in Star Trek episodes....
As an avid fan since the 1960s and one who has seen all the episodes many times, I would have to question this statement.
I know that Kirk, Spock, Bones and Checkov have all died at one time or another in the ST universe, but I don't think Scott, ever did.
Not accusing you, but can you name the episode in which Scotty died?