Take it to a different inspection station. Calibration variances in those sniffer machines can be pretty large.
High HC can be from a few things. Most common are a bad cat(or the air pump system that feeds it fresh air is broken), or a too-lean fuel mixture. I've heard of a bad O2 sensor telling the ECU it's too rich, and the engine makes itself too lean and gets this error. My old truck did this and the check engine light would randomly go on and off with a "o2 sensor out of spec-rich" code.
Its fundamentally caused by a poor fuel burn. Weak/intermittent spark or low compression can also cause this.