I would like to have an Automation rule such that when any Issuetype is moved to either Epic/ Initiative type the Sprint value should be cleared. This rule is applied for a Single project.
Follow that with conditions to check the Issue Type value before and after the change to ensure the rest of the rule is executed for only the change you want.
Then use an Edit Issue action to clear the Sprint field.