The intentional restriction of oxygen to the brain with the intent to get sexually aroused and is done by the person to themselves is called autoerotic asphyxiation. These people a sometimes referred to as “gaspers”.
Partial self strangulation to increase erotic arousal is called autoerotic asphyxiation.