A couple of issues.
The Insert Instructions has 2 Import modes. The default is to insert as rungs of logic into a specific location of an existing code block. The other is when you have an entire code block that you want to insert (not inside an existing code block).
Your .txt file contains a TASK code block, not just rungs of logic. So you must choose the other option to insert As Code Blocks, which you tried.
You tried that and it failed differently. It appears your .txt file has been modified and you are missing the memory configuration portion of the export that defines the heap item "eventlogger" and "eventlogger2".
Not sure how this was generated, but the Memroy Configuration section is missing. This defines the areas that may need to be created in your new project that are missing (like a task heap item or a block of reals or whatever).
Here is a copy of the export I created that has that Memory Configuration section for the task (I UNchecked System Configuration since that section cannot be imported into an existing project, but the Memory Configuration can):
// Options: Export code block eventlogger3 from address 0 to 1;
// Code Block delimiter instructions; Formatted Rung Comments;
// Element Documentation Database w/Flags; Memory Configuration/Devices with User Add-Ons only;
// use Element names (no NickNames); rung/address annotations;
// <SPACE> parameter delimiter;
// Write/overwrite file D:\codeMTX\Design\Sample Projects\MyExport3.txt
PLC BX-DM1E-18ED13
#BEGIN MEM_CONFIG
eventlogger3 TASK 0 -1
#END
// Beginning of Code Block eventlogger3
$TSK eventlogger3
// Rung eventlogger3#1
// Offset 0
STR ST1
OUT C222
// End of Code Block eventlogger3
$TSKEND eventlogger3
Note the eventlogger3 definition in the MEM_CONFIG section.
I tried it using the default "as instructions" and got your first set of errors since this is an entire TASK code block and cannot be inserted into an existing code block:
[Error] No logic inserted at $Main#1
[Error] Instruction "$TSK" cannot be inserted as a user instruction
[Error] Instruction "$TSKEND" cannot be inserted as a user instruction
I then repeated the Insert Instructions, but as a Code Block and the eventlogger3 TASK code block imported (see attached image).
The Import mechanism is powerful, but has lots of possibilities for failure since the .txt file can contain ANYTHING. Sadly, the Export mechanism is the only good way to understand the requirements of the Import function.