Williams driver Carlos Sainz was left frustrated after almost colliding with the Ferrari during opening practice in Saudi Arabia.