There are two important safety measures to stay pretty safe in BJJ.
Number one: Choose your training partner wisely.
If someone who is always going crazy asks you to roll with her/him just say “I’m good”.
Number two: Don’t try to be the tough guy while rolling.
If your opponent gets an submission on you tap early enough.