It looks as though the Earth contact is not sticking up (or down) far enough.
If you can test that there is actually an Earth connection there, can you also use something like a multi-meter probe to lift up the contact to provide more tension and, hence, a better connection.
It would be a good idea to replace the Socket Outlet.