avoid getting emotional
keep your focus on earning his confidence, not on testable code
keep your good habit of recording his instructions and his decisions
keep working long hours and try not to feel bad
keep record of his questionable decisions, to defend yourself in x months
Share with trusted support network members if it makes u feel better. Keep your trust on your support network.