Hi OP,
Are you able to find solution for this issue. I ran into this problem very often. When I focus at 240mm, RP doesn't focus from de-focus state. Workaround is, zoom it to 200mm and focus on the subject. When i zoom out to 240mm, it can focus this time. i sent it to Canon. Canon is not able to replicate issue but they fine tuned the focus system on Lens and Camera. I received lens and RP back from Canon. Going to test it and see how it is going to work.