It was NSU that failed. However, the NSU name can still be found on the Mazda engines as NSU still owns the rights to the design, even though Mazda did all the hard work and solved all the problems.
It was the R&D that nearly sent Mazda broke.
All Wankel engine manufacturers are licensed to NSU...