Most standard life insurance policies pay out regardless of cause of death (including death related to mental health).
This means loved ones are protected if you pass away due to mental health related conditions, provided you disclosed all necessary information when you applied.
However, there is a suicide clause to be aware of. Almost all life insurance policies in the UK include a suicide clause.
This means if you die by suicide within the first 12 months (in some cases 24 months) of the policy starting, no pay out will be made.
After this period, the policy would typically pay out as usual.
This clause is a standard throughout most insurers and is in place to prevent fraudulent claims, not to exclude those living with a mental health condition.