What happens if the interval between the 2nd and 3rd vaccine for the hepatitis b virus is too long?

Temporary changes. There may be a transient drop in protection generated by the initial vaccines, but finishing the series will bring it back to a protective level.