@saurabh_kumar_02 Please follow below Steps to acheive your usecase:
Hi @saurabh_kumar_02 ,
To achieve maximum number client side validation, you have to add custom script, which I would not recommend because of maintenance of backward compatibility for future component updates. Instead of that you can display an author friendly message in authoring mode while author configures the component to suggest/warn that the component works better for max 3 components.
You will find a details description in below video-
Hope it helps!