Not diagnosed, but eventually I noticed how veggies gave me psychotic episodes that would last for a few days. Was connected to oxolates seemingly. After one week of probiotics psychosis doesn't happen when I eat veggies now.
Incidentally caffeine calms me down as well.