Most likely the frame spacing mechanism needs a cleaning. I don't remember the specifics right now but there will be a pawl and a lever or two. These metal parts get oxidation and such, dirt, old grease, etc. and don't move as smoothly as they should. Open up the top and clean things, remove levers if you can and polish their friction areas, clean the ratchet and pawls and deburr if needed, and all will be good.
The ratchet mechanism will do exactly what you describe when dirty- not fall into place at the right time, late on one frame allowing for wide frame spacing, then 'make up for it' on another. The focus mechanism could add to the frame spacing, but I've never heard of that before.