The only things that can cause this are

1 focus shift built into the enlarger lens as it is stopped down. Get a better lens.

2 negative popping from heat. Heat absorbing glass helps a little. A Glass carrier is the cure.

3 the focus control drifts. repair as necessary