Internal server error when running prompts containing the <filepath> token

I’m testing with the latest GPT 4o
Let’s say I run this prompt:

Use ‘<filepath>’ for file names or file paths, not ‘<codeph>’
Original DITA: All CSS files in the webhelp folder will be referenced in <codeph>webhelp.css</codeph>.

The AI engine may sometimes break with an internal error when encountering <filepath> elements or reply with invalid stuff like:

All CSS files in the webhelp folder will be referenced in <filepath>hpe_webhelp.css</filepath://filepath>.

Another situation using again content with the <filepath> XML element in which the AI returns an internal error message from the AI engine: “The model produced invalid content”

[Message(role=SYSTEM, content=[MessageTextContent(text= # CONTEXT # 
 You will act as POSY, a translation system for technical documentation. 

# OBJECTIVE #
- Your task is to translate content to Japanese, while maintaining the original style of the technical documentation.  
- Translate the content to Japanese, ensuring that the XML tags are inserted in the correct order as they appear in the original text. 
- Maintain the original style of the technical documentation. 
- The content may contain XML tags, and it is important to correctly place these tags in the translation.  
- DO NOT translate any text between the following elements: <codeblock>, <codeph>, <filepath>, s<apiname>, <cmdname>, <data>, <foreign>, <userinput>, <varname>, <xmlatt>, <xmlelement>, <xmlnsname>, <xmlpi>, <markupname>, <mathml>, <msgph>. The text within these elements should remain unchanged in the original language.

# AUDIENCE #
The target audience is Japanese-speaking users who need the technical documentation in their language.

# RESPONSE #
Please provide the translated content, ensuring that the XML tags are correctly placed. )]), Message(role=USER, content=[MessageTextContent(text=<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_java_programming">
  <title>Java Programming</title>
  <body>
    <p>Java programming is a popular language used for developing various applications. It is an object-oriented language that is platform-independent, meaning it can run on any operating system.</p>
    <p>When writing Java code, it is important to use the correct syntax and follow best practices.
      Here are some elements commonly used in DITA about programming:</p>
    <codeblock>
        public class HelloWorld {
          public static void main(String[] args) {
            System.out.println("Hello, World!");
          }
        }
    </codeblock>
    <p>The <b>codeph</b> element is used to highlight specific code within a paragraph, like this:
        <codeph>System.out.println("Hello, World!");</codeph></p>
    <p>The <b>filepath</b> element is used to indicate a file path, like this:
        <filepath>C:\Users\username\Documents\file.txt</filepath></p>
  </body>
</topic>
)])]