Weird query with get_posts and WP_Query

I just tried to replicate your code and the only issue I came up with is in one of the arguments to your CPT setup.

You have

"capability_type" => "comunicado",

But this prevented the CPT working correctly for me. I don’t think this argument should be referring to itself. I replaced it with ‘post’ to set the CPT to act like a Post and things then worked ok for me. Before this I could not see or create any Communicados in the Dashboard – after I changed it I had all the normal UI.

Not sure that this is the cause of your issue but for that one change I was able to run your Query code just fine.

Vanilla WordPress 5.5. with CPT UI installed and nothing else. Changes made to functions.php and single.php in order to simulate your code.

error code: 523