A relationship on 4K posts is the issue. The query to get the posts is probably timing out. It’s been mentioned here before and I don’t know if there is a solution. You could try limiting the post types that it tries to load.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users