Role of patterning induced defect on the switching field in magnetic nanostructure