How to replace the icon in the top left corner of the task node with a custom SVG?

Have a look at @bpmn-io/element-template-icon-renderer and some related topics:

Changing Icon in a service task shape
Add custom icon within custom rendered shape