Error when visiting own profile page

When visiting my own profile page, I get the error message “An unexpected error occurred” on the “media” section. My posted Images do not show up.

When looking in browser console, I can see an entry:

   GET /api/v1/accounts/.../statuses?only_media=true&limit=40&with_muted=true 500 (Internal Server Error)

What could be the issue here?