Can you give some names of those kernel32 functions?
Sure, among them just about all the IsBadXXX family of functions, such as, IsBadCodePtr, IsBadReadPtr, IsBadStringPtr, etc.
MS screwed up their implementation (they potentially mess up stack's guard pages.) Instead of fixing the functions (which would not be hard), they made them difficult to use under a debugger (which is a strong way of discouraging people from using them.)
Got to love the way they go about it too, the documentation states that the exception generated when running a debugger is "by design". Some people are genuinely brilliant at creating gratuitous problems and, unfortunately, not so brilliant at solving any.