I usually keep a speed of 150-160 km/h (93-99mph) on the highway without any problems whatsoever. However, yesterday I decided to go up to 170 km/h (106mph) and the engine doing around 4600 rpm, when the engine suddenly turned off. The engine was not close to being overheated in the slightest, and I was not out of fuel. I did a full stop and started the engine again and continued driving with a speed of 140-150 km/h (87-93mph) without any problems.
In other words, it does not seem that the car turned off as a direct cause of too much strain on the engine (or anything else) since there was no overheating, no smell, and the car had no problems after starting the engine again (however, I did not try to drive 170 km/h (106mph) again to see what would happen).
What are the most probable causes of this? Is there a possibility that the car manufacturer has programmed this as a "safety" feature?
The car is a Nissan Primera from 2005.
Update: After further testing I have noticed that the engine does not turn off if I accelerate extremely slowly. Furthermore, the engine doesn't always turn off and seems to have a lower probability of turning off if this hasn't happened for a while.
Update 2: Things have gotten a lot worse. The car turns off at high rpm (~3000) even when stationary.