E0594 Domain whose name does not match its file
Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.
Why
A domain's name is what every other domain, the generated modules and the client call it, so it is written once, as domain: in the file, and the file is named after it: domains/posts.domain.yaml holds domain: posts. Two files cannot name the same domain.
How to fix it
Make domain: match the file's name, or rename the file.
In a terminal
duolith explain E0594