Applications of Stein's method and large deviations principle's in mean-field O(N) models