Yes, if a person sneezes during prayer, he should praise Allah but in a low voice.
So that even the person next to him does not hear him. That's it.
I praise Allah in a low voice so that the one next to me does not hear me.
Otherwise, someone who doesn't know how to pray might say "may Allah have mercy on you," and it becomes a bigger issue, so just praise Allah in a low voice.