If the target of Quintorius’s triggered ability is an illegal target at the time the ability tries to resolve, the ability won’t resolve and none of its effects will happen. You won’t create a Spirit token.