Method and apparatus for error detection in a pressure sensor for a combustion engine