No problem, as long as 410b and 401a4 pass, which they very well could easily if you have a lot of non-excludable HCEs who do not benefit.
BUT, you still need to allocate under the terms of the plan (and the terms of the employer's declaration of profit sharing). If the PS is declared as going to A, B and C but B got excluded by mistake, I see that as a problem. If PS is declared by each company separately, and A and C declare PS while B does not, then no problem (subject to testing of course).
Remember, if the employer(s) designates each individual's PS then there should be declaration, documentation, memo, etc. as to that effect and as to the actual allocations.