The solution is very simple: find the postgresql.conf file on the server.
In Windows, it is located here: C:/Program Files/PostgreSQL/16/data/postgresql.conf.
Find the line with the lc_messages parameter.
Replace the lines with:
lc_messages = 'English_United States.1252'
lc_monetary = 'English_United States.1252'
lc_numeric = 'English_United States.1252'
lc_time = 'English_United States.1252'
default_text_search_config = 'pg_catalog.english'
P.S: If the file is not in this location, then use the SHOW config_file; request on the server. This will show the path to the file.