Comma before «because»

It’s unusual to put a comma before because.
You only do it when you need the comma to prevent confusion because your sentence could have two meanings.

Если because можно перевести как «из-за того, что», «за то, что» то запятая не нужна.

I thought he loved me because I was not quite right in the head.
Мне казалось, что он любил меня за то, что я слегка свихнулась .


I thought he loved me, because I was not quite right in the head.
Мне казалось, что он любил меня, потому что я была не своём уме.