That’s pretty close of my theory about Layla, because the spirit king and mard had met before so someone invoked him, but they still 12 keys, so what if Layla invoked him but instead of taking one of her keys she gave her life so she can give her keys to her daughter?
Lucy could save Natsu by sacrificing all her keys but instead she sacrifices herself.