How to set a task a week before a milestone


I have a milestone and I would like to set a task to be complete at least 1 week before the milestone. If the milestone happens to change, I need the task to adjust accordingly.

I was able to get the schedule correct by setting a S-F dependency on the milestone with a lead time of -1w 1d. However, I now get a violation on my milestone of “Start no earlier than constraint hit due to dependents.” There is nothing else affecting either item; the same behaviour can be seen in a schedule with only these two.

How can I set this up so that I do not have any violations?