The operator replaced the 612 A strainer and then proceeded to switch the 612 B Strainer. While turning their back to switch the strainer valves, a loud noise occurred, causing slurry to spray out of the strainer housing toward the operator. This incident caused the operator's hard hat to come off & them hitting their head on the beam above.