The horizontal momentum is one of the failures of my life, and I still dont know what the problem is because I tried reapplying the velocity when the player froze and it still used to magically backtrack ( like for e.g if it moved right, it used to jitter and center itself back to its original position). I spent one day on it and still had no results so I just ignored it to finish the game as I was lagging behind.
Platform thicker is a good idea, I might make it a a huge square block .
Thanks for the feedback and for playing !