Since you started in USA you can only leave US/Canada once. SJU-BGI is the second exit from USA and thus not allowed.
The way around it is to do BGI on a side trip, or start from another country (and not Canada - for the purpose of this rule USA & Canada are the same country).