Hello @lokdawg78 ,
it's probably caused by the 'Apply to each 2', in that loop you're looping through all the messages (output of the 'List Messages' action) for each item in the list.
Instead of looping through all of them and evaluating them in the condition try to use the 'Filter array', similar to the this post. For each item (the first 'Apply to each') filter only the message with the corresponding id. If it exists, do nothing, otherwise create it.
[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]
[ I also blog about Power Automate solutions even for non-IT people