bug: introduce BUILD_BUG_ON_INVALID() macro