This bug is caused by using the yellow hidden portal (5-20% of the time) while cursed by the small golem minions.
The preventive method, is to absolutely never let the golem reach the center of the map and curse you.
The extreme measure method, is to purposely die to get rid of the curse before you get the hard locked from going into the yellow portal.
The workaround method, is to never use the yellow hidden portal while cursed.
There used to be a fix, but the fix was patched out when you can no longer use guild skill while dead to free yourself from the hard lock.
According to the KMS wiki , Carte Noir only activating 170 times in Luck of the Draw is also the current behavior in KMS, which they guess is to prevent server/client overload or limitation of the maple story client for FA based attacks.
Phantom Mark only has 9 separate attacks. (7 from projectiles, and 2 from the finisher)
So Carte Noir can only proc 9 times (your hit 18 times because it probably hit 2 separate monster)
("total attack" in the battle analysis mean number of damage lines, Carte Noir is based off of "times used")