I think Aristotle would say that since a job is ultimately not in your control and you can be fired for reasons out of your control, you must compartmentalize your attachment, or detach altogether, if you wish to avoid pain.
It’s also an insight from Buddhism that expectation and attachment are core causes for suffering.
Yes, expectation and attachment are core causes for pain/grief/suffering. But that doesn't mean you shouldn't have expectations or attachments. It's just that you have to decide if the (potential or actual) grief and suffering is worth it, and under what terms you're willing to continue to have that expectation or attachment. This is where acceptance and boundaries have a huge part to play.
That's sometimes a difficult question. What kind of relationship to have with an emotionally abusive parent? Whether to leave a job that's financially very rewarding but is also extremely stressful and 60-80 hour weeks are common?
Buddhism decidedly doesn’t say “ergo, don’t love things.” It’s more “love things (people) as they are, without attachment and in full knowledge that they are ephemeral.”
I think you can get a lot of enjoyment and satisfaction out of a job without losing sight of the fact that it's a business arrangement... one which may stop being mutually beneficial for any number of reasons.
Also you're loving something that cannot love you back.