But if Eridan wasn't grimdark, why he killed Feferi? I thought he loved her

He was feeling betrayed and was in battle mode from his fight with Sollux and she jumped at him