Mucho animo!!
This is happening to many men in Spain
Although Spain has been for long time one of the countries with the lowest violence rate against women
(Data from fra.europa.es)
In Spanish laws if a woman says a man hurt her (phisical or pshicological) ,you go first to jails ,usually loose your job ,and your house , can not see your children... etc
From my experience ,it is quite hard to try to defend as a man against her
From my experience the best tactic is try to protect your children from your ex wife , there are many laws defending kids from parents violence , and kids are many times more sensible to unfairness than adults
Si vienes a Madrid , te puedes quedar unos dias en mi casa si lo necesitas
Un abrazo