There are many types of mouthguards for grinding and clenching.
Over the counter ones actually may be too thick and throw the muscles into more spasms. Dentists can make custom made, well fitting mouthguards, either upper or lower (i like the lower ones.) the guards can be made of soft plastic or hard acrylic...Depends on severity of grinding. For daytime clenching, other types are indicated.