I apologise for the CodePen, I wanted to give an example of what I looked at for one of the SVG/Pan examples I have taken as a link but it seemed to show the actual sketch of it.
I found the issue - p5 has a function that draws a "point", and I named the variable of the created SVG point as "point" which interfers with the P5 function. Simply naming it to something else like "pt" made it work. I appreciate for the quick reply!