Hi,
Increasing the input voltage beyond the internal 2.5Vref - up to 4V in your case - won’t damage the device and the output code will remain at 0xFFFF, but it may impact the device reliability if exposed for extended periods and is certainly not recommended.
With VDD = 5V, I recommend you use the 4.096V internal reference.
Regards,
Karen