Sometimes stress and lack of exercise can cause you to grind your teeth during your sleep so you can try exercising and getting rid of the stress.
Sometimes that will help with grinding teeth in your sleep.
Or you can wear a teeth grinding mouth guard to wear over your teeth while you sleep which prevents your teeth from being damaged when grinding your teeth.
Sometimes if you take a Warm Relaxing Bath Before Bed that can sometimes help prevent grinding your teeth at night but there's really no cure for grinding your teeth but wearing a tooth guard at night is well worth it and can help prevent damage to your teeth.