It doesn't matter whether you sleep under the kitchen or next to its wall.
But in ancient times, it would have an impact, because the ancient kitchen stove was very angry, which can also be said to be suffocating.
Modern kitchens are far worse than ancient ones in cooking gas, so don't worry.