How can I prevent the validation script of the contact object from impacting other objects such as resources and suppliers?

You must write your application code in such a way that the validation script of the contact object doesn't impact other object flows such as resources or suppliers. Here's a sample Groovy code:

if (InternalFlag == 'N')
{
<your application code>
}