Looks fine to me.
I am 5’7″ and I used to always buy SMALL frames. About 2 years ago I bought a MEDIUM and it has been the best fitting bike I have ever bought! Now, I feel as though I am sitting “in” the bike rather than perched on top with the seatpost extended to the max :)
I have roughly the same clearance as you and it has never been a problem.