It should be OK. BMW specced 255/40 for the 17x9 M5 wheel as Michelin produced an extra tall MXX2 tyre. So 265/40 probably matches the fronts better. Some M5 owners in the States run 275/40 as apparently this is the stock mustang/camaro size so more choice.