I checked a chart and code h and code ha were 58-61 348 motors 250 and 280 horsepower jobs. I think someone stamped the pad along the way thus you don’t know what it is. It seems on my 63 ss that the casting code was stamped on the block and also on the transmission. If your numbers are not the same on both then either the engine or transmission is not original to the car.
Again I see an “hq” code for a 1965 327 with powerglide and a/c. To me it is a bogus stamp code and only the casting code ( if that is original to the car) will tell you the truth about the car. The engine by looking at it is definitely a 348 or 409 style of motor. You should find out what it is before you buy it.