You can get this resolved by adding input validation and max length attribute to your input field.
<input type="tel"
name="phone"
autocomplete="tel-national"
pattern="[0-9]{10}"
title="Please enter a 10-digit phone number"
placeholder="1234567890"
maxlength="10">