Quantum confinement effect induced topological phase transitions in anisotropic Weyl semimetal