Personally I would measure the thickness of the block casting and add the thickness of the water pump. That would be full depth so you might trim off let's say about 1/4" from the measurement and be good.
Sorry to say I don't know the length of the bolts but that's one way to resolve the length issue.