A lug is designed to terminate a conductor, not splice. I suggest that you get someone qualified ro more knowledgeable to assist you, especially in a 400 amp panel. A panel that size is not a DIY item.
Answers based on the National Electrical Code. Local amendments may apply. Check with your local building officials.