I would argue that Anakin's attachment itself wasn't the problem. The problem was that it wasn't allowed, and so he couldn't go to his fellow Jedi for help and solidarity when he was worried about something awful happening to the one he loved.
Before
Attack of the Clones came along with its outright prohibition on romantic or family attachments, the Expanded Universe had Jedi in ancient times who actually had their own personal lives outside of the Order, who were lovers, or married, and/or had kids. So they were a little closer to regular
knights than some fanatic order like the Knights Templar who forbade holding property or getting married. Bringing new life into the universe should be a good thing for The Force, right? In that brief period between TPM and AOTC, we found out from the EU that even Jedi Council member Master Ki-Adi-Mundi from TPM had
five wives!
Then when AOTC came along, the EU had to do some convoluted in-universe backpedaling and rationalization for Jedi marriages that had already been depicted. Like at some point after the "Tales of the Jedi" era, the Jedi coalesced into the form depicted in the PT and created this rule prohibiting personal attachments. Because something bad happened with somebody's personal attachment, or because they feared that something bad
might happen with somebody's personal attachment, or whatever. And the Council deigned to allow Ki-Adi-Mundi to get married
five times purely for the survival of his species which had a perilously low birth rate which we found out about out of the blue.

And marriages being commonplace in the New Jedi Order could be explained as Luke doing things much differently than in the old days of the failing PT-era Jedi Order... which I think some of us were kind of hoping for with the New Cannnnnon.
Kor