I am not a doctor, but one of the things our doctor said to check for Ammonia (NH3) in blood. It is called Hepatic Encephalopathy. The treatment option is Lactulose.
This may not be applicable, but worth talking to the doctors.
Wish you the best
Sudhir