Juan Carlos: Court throws out ex-lover's 145m legal case