Issues with 12 speed cassettes. I am having a problem getting it to shift into the last 11 tooth cog on two different wheelsets. I have backed off the limit screw so much that it has over-shifted on the outboard side so I don't think the limit screw is the problem. It will actually shift to the 11 and then about 2 seconds later it shifts back up to the 12. if i hold the button down, it will stay in the 11 but as soon as I release the shift button, it shifts back to the 12. I did replace the wonky looking narrow/wide type pulley with one from a 6800 ultegra derailleur I had laying around. That helped shifting all over but the 11 cog is a mystery. When I use an 11 speed wheel and change it to 11 speed in the settings, it has no issue shifting the entire range.
I'm running a 12 speed cassette with no issues. Check your lower limit screw and also try fine tuning in the app. I have my ER9 tuned using gear protection and optimal shifting for climbing in my small chainring. Though I can shift big/big and small/small no issue.
Also check that your derailleur hanger is aligned properly and that your cassette is seated properly in the freehub. I've noticed 12 speed is a bit more finicky so any little thing out of adjustment can affect shifting.
Worst case scenario is reset all settings using the app and start fresh. Make sure to double check if your RD is properly screwed into the derailleur hanger. Good luck!